package com.zh.modules.app.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zh.generator.core.BaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author zh
 * @since 2024-03-22
 */
@Getter
@Setter
@TableName("orders")
@ApiModel(value = "OrdersDO对象", description = "订单")
public class OrdersDO extends BaseDO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单号")
    private String orderNo;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("业务ID （对应ip_proxy中的ID）")
    private Integer bizId;

    @ApiModelProperty("国家")
    private String country;

    @ApiModelProperty("州，邦")
    private String state;

    @ApiModelProperty("城市")
    private String city;

    @ApiModelProperty("套餐类型  0：静态IP")
    private Integer packageType;

    @ApiModelProperty("支付方式 0：余额 1：银行卡")
    private Integer payType;

    @ApiModelProperty("购买数量")
    private Integer buyNum;

    @ApiModelProperty("单价（分）")
    private Integer unitPrice;

    @ApiModelProperty("优惠（%）")
    private Integer discounts;

    @ApiModelProperty("购买天数")
    private Integer dayNum;

    @ApiModelProperty("总价格（分）")
    private Integer totalPrice;

    @ApiModelProperty("订单状态 0：未支付 1：已支付 2：已完成")
    private Integer status;

    @ApiModelProperty("支付时间")
    private Date payTime;

    @ApiModelProperty("使用用途优化")
    private String usageOptimization;


}
